import React from 'react';
import ToolItemBase from './ToolItemBase/index';
 import Preview from './Preview/Preview.js';
import ToolSingleImagePreview from './Preview/ToolSingleImagePreview';

export default class ToolSingleImage extends ToolItemBase {}
ToolSingleImage.defaultProps = {
	name:"单列图片模块",
	icon:<i className="tool-icon iconfont">&#xe606;</i>,
	preview:ToolSingleImagePreview,
	formField:{
			"myTitle":{"type":"title","title":"单列图片模块","name":"myTitle"},
			"myPic":{"type":"picture","title":"图片","name":"myPic","max":1,"aspectRatio":16/9,"onlyCrop":false},
			"myText":{"type":"text","title":"文字","name":"myText","placeholder":"请输入图片文字"},
			"myLink":{"type":"text","hasicon":true,"title":"链接","name":"myLink","placeholder":"请插入正确的手淘链接"},
			"bgColor":{"type":"text","title":"背景色","name":"bgColor","placeholder":"请输入颜色代码，#号开头"},
		},
	formData:{
		"myTitle":"",
		"myPic":"https://img.alicdn.com/imgextra/i4/27390555/TB2MukTgEdnpuFjSZPhXXbChpXa-27390555.gif",
		"myText":"",
		"myLink":"",
		"bgColor":"",
	},
	cls:"",
	code:"single_image",
	maxCount:10
};